



<div class="container_base">

    <!-- 模块菜单 -->
    <div class="container_base_module">
        <div class="container_base_hh">
            <div class="logo"><img
                    src="https://image-c.weimobwmc.com/sass-admin/f866363f7c154be8a77dd4862a1406f8.png" /></div>
        </div>
        <div class="container_base_mm">
            <div class="ul">
                <router-link :class="'li '+item.isCurrent" v-for="(item,index) in systemMenu" :key="item.id"
                    :to="$vFN.Tools.toUrl({path:item.auth_name})"><i :class="'icon '+item.menu_icon"></i>
                    <div class="t">{{item.menu_title}}</div>
                </router-link>
            </div>
        </div>
    </div>
    <!-- 子菜单 -->
    <div class="container_base_menu" v-for="(item,index) in systemMenu" :key="item.id"
        v-if="item.isCurrent &&item.children.length>0">

        <div class="container_base_hh">
            <div class="name">{{item.menu_title}}</div>
        </div>
        <div class="container_base_mm">
            <div class="ul">
                <div class="li" v-for="(iitem,iindex) in item.children" :key="iitem.id">
                    <div class="head">{{iitem.menu_title}}
                    </div>
                    <router-link :class="'sub ' + iiitem.isCurrent" v-for="(iiitem,iiindex) in iitem.children"
                        v-if="iiitem.auth_name!=''" :key="iiitem.id" :to="$vFN.Tools.toUrl({path:iiitem.auth_name})">
                        {{iiitem.menu_title}}
                    </router-link>
                </div>
            </div>
        </div>
    </div>


    <!-- 主体 -->
    <div class="container_base_container">
        <div class="container_base_hh">
            <div class="title">
                <template v-for="(item,index) in systemMenu" v-if="item.isCurrent">
                    <template v-if="item.children.length<=0">
                        {{item.menu_title}}
                    </template>
                    <template v-else v-for="(iitem,iindex) in item.children">
                        <template v-for="(iiitem,iiindex) in iitem.children" v-if="iiitem.isCurrent">
                            {{iiitem.menu_title}}
                        </template>
                    </template>
                </template>
            </div>

            <div class="fn" v-if="userInfo" @click="platformOpen()">
                <template v-if="projectType=='admin'">
                    <div class="face"><img :src="userInfo.icon" /></div>
                    <div class="name">{{userInfo.username}}</div>
                </template>
                <template v-if="projectType=='site'">
                    <template v-if="userInfo.type=='admin'">
                        <div class="name">平台管理员</div>
                    </template>
                    <template v-else>
                        <div class="face"><img :src="userInfo.icon" /></div>
                        <div class="name">{{userInfo.mobile}}
                            <!-- 身份{{userInfo.type}} -->
                        </div>
                        <div class="name" v-for="(item,index) in platformLst" v-if="item.id==userInfo.platformId">
                            {{item.name}}</div>

                    </template>
                </template>

                <div class="name" @click.stop="logout()">注销</div>
            </div>
        </div>
        <slot name="main"></slot>

    </div>

    <!-- 帮助 -->
    <div class="container_base_help">
        <div class="container_base_hh">
            <div class="name"><i class="el-icon-warning-outline"></i>帮助与支持</div>
        </div>
        <div class="container_base_mm">
            <div class="ul">
                <div class="li" v-for="item in helpList">
                    <div class="title">{{item.title}}</div>
                    <div class="des" v-if="item.des">{{item.des}}</div>
                </div>
            </div>
        </div>
    </div>

</div>